package com.kaifa.test;

public class StringDemo {
    public static void main(String[] args) {
//        String str = "abc你好";
//        String str2 = "VMN好看234";
//        String str3 = "qweabc阿翔567";
//        String str4 = str+str2+str3;
        /*str
        str2
        str+str2
        str3
        str+str2+str3*/

//        System.out.println(str4);
//        System.out.println(str4.replaceAll("\\d+","哈哈"));
//        System.out.println(str4.replaceFirst("a","mn"));
//        System.out.println(str4.toUpperCase());
//        System.out.println(str4.toLowerCase());
        /*System.out.println(str4.length());*/
        /*String str5 = str4.replace("阿翔","123");
        System.out.println(str5);
        String str6 = str4.replaceAll("1","2");
        System.out.println(str6);*/
        /*boolean bl = str.isEmpty();
        System.out.println(bl);
        System.out.println(str.length());*/


        String ipAddress = "192.168.11.0";
        System.out.println(ipAddress.substring(4,7));
        System.out.println(ipAddress.indexOf("8"));

//        System.out.println(ipAddress);
//        System.out.println(ipAddress.trim());
//        System.out.println(ipAddress.replace(" ",""));



        /*String[] ips = ipAddress.split("\\.");
        System.out.println(ips.length);
        for (String str2 :ips){
            System.out.println(str2);
        }
        for(int i = 0; i<ips.length;i++){
            System.out.println(ips[i]);
        }*/



//String str3 = null;



    }
}
